Implement method to get group's child groups using Keycloak 23 API #459
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This doesn't resolve the issue #456 with
GetGroups()
andGetGroup()
not including the child/sub groups in the results - because of changes in Keycloak 23's API:/admin/realms/{realm}/groups
Endpoint Not ReturningsubGroups
,clientRoles
,realmRoles
DespitepopulateHierarchy
andbriefRepresentation
settings" keycloak/keycloak#25053 (comment)Rather, this is a separate method to get a group's child groups using the new
GET /admin/realms/{realm}/groups/{id}/children
endpoint in Keycloak 23's API - as mentioned in #456 (comment)Method was tested locally with
quay.io/keycloak/keycloak:23.0.4
image.As mentioned in #456 (comment), this method could be expanded with a
params GetChildGroupsParams
parameter.